# 昵称：python小白
# 座右铭：扛得住涅槃之痛，才配得上重生之美！
# 开发时间：2023/3/4 21:38
# len()函数 获取序列长度(length)
# lista=[1,21,32,2,31,31,31,1,212,121]
# tuplea=(1,2243,4,23,12,12,11,1,1)
# dicta={"name":"hangman","age":18,"hobby":"play"}
# seta={21,24,22,32,31,2,12,121,21}#重复值不计算在长度内
# length=len(set)
# print(length)

# 获取字符串长度
s1 = "hello world!你好，深圳！"
print(len(s1))